﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.File.Entity.Global;
using Tauren.File.Entity.Model;
using Tauren.File.Entity.Output;

namespace Tauren.File.DLL.FolderDLL
{
    public interface IFileFolderBusiness : Base.IBaseDLL
    {
        /// <summary>
        /// 获取文件夹信息--多个
        /// </summary>
        /// </summary>
        /// <param name="model">文件夹实体</param>
        /// <returns></returns>
        List<FileFolder> List(object id);
        /// <summary>
        /// 获取文件夹信息--多个
        /// </summary>
        /// </summary>
        /// <param name="model">文件夹实体</param>
        /// <returns></returns>
        List<FileFolder> GetListOrgID(int orgId, string type);
        /// <summary>
        /// 获取文件列表-按组织-按上级Id
        /// </summary>
        /// <param name="orgId"></param>
        /// <param name="type"></param>
        /// <param name="pid"></param>
        /// <returns></returns>
        List<FileFolder> GetFolders(int pid);

        /// <summary>
        /// 判断文件夹是否重复
        /// </summary>
        /// <param name="AutoId"></param>
        /// <param name="PerCode"></param>
        /// <returns></returns>
        bool IsFolderRepeat(FileFolder filefolder);

        /// <summary>
        /// 获取序号
        /// </summary>
        /// <returns></returns>
        double GetSeq();

        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<PageDocumentCenterTable> Pages(QueryModel queryModel, out long Total);


        bool Edit();
        /// <summary>
        /// 获取开启的网站路径
        /// </summary>
        /// <returns></returns>
        Physicalhistory SingleByEnable();
    }
}
